<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('智慧进度列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>道路名称：</label>
                                <input type="text" name="roadName"/>
                            </li>
                            <li>
                                <label>已完成的路基填方(/万m³)：</label>
                                <input type="text" name="roadbedFillingCompleted"/>
                            </li>
                            <li>
                                <label>路基填方总数(/万m³)：</label>
                                <input type="text" name="roadbedFillingCount"/>
                            </li>
                            <li>
                                <label>已完成的路面(/km)：</label>
                                <input type="text" name="pavementCompleted"/>
                            </li>
                            <li>
                                <label>路面总数(/km)：</label>
                                <input type="text" name="pavementCount"/>
                            </li>
                            <li>
                                <label>已完成的路基挖方(/万m³)：</label>
                                <input type="text" name="roadbedCutCompleted"/>
                            </li>
                            <li>
                                <label>路基挖方总数(/万m³)：</label>
                                <input type="text" name="roadbedCutCount"/>
                            </li>
                            <li>
                                <label>已完成的软基换填(/m³)：</label>
                                <input type="text" name="softFoundationFillingCompleted"/>
                            </li>
                            <li>
                                <label>软基换填总数(/m³)：</label>
                                <input type="text" name="softFoundationFillingCount"/>
                            </li>
                            <li>
                                <label>已完成的桥梁桩基(/根)：</label>
                                <input type="text" name="bridgeFoundationCompleted"/>
                            </li>
                            <li>
                                <label>桥梁桩基总数(/根)：</label>
                                <input type="text" name="bridgeFoundationCount"/>
                            </li>
                            <li>
                                <label>已完成的桥梁墩柱(/根)：</label>
                                <input type="text" name="bridgePierCompleted"/>
                            </li>
                            <li>
                                <label>桥梁墩柱总数(/根)：</label>
                                <input type="text" name="bridgePierCount"/>
                            </li>
                            <li>
                                <label>已完成的桥梁系梁(/根)：</label>
                                <input type="text" name="bridgeBinderCompleted"/>
                            </li>
                            <li>
                                <label>桥梁系梁总数(/根)：</label>
                                <input type="text" name="bridgeBinderCount"/>
                            </li>
                            <li>
                                <label>已完成的桥梁盖梁(/根)：</label>
                                <input type="text" name="bridgeBentCapCompleted"/>
                            </li>
                            <li>
                                <label>桥梁盖梁总数(/根)：</label>
                                <input type="text" name="bridgeBentCapCount"/>
                            </li>
                            <li>
                                <label>已完成的梁板预制(/根)：</label>
                                <input type="text" name="prefabricationBeamSlabCompleted"/>
                            </li>
                            <li>
                                <label>梁板预制总数(/根)：</label>
                                <input type="text" name="prefabricationBeamSlabCount"/>
                            </li>
                            <li>
                                <label>已完成的涵洞基础(/延米)：</label>
                                <input type="text" name="culvertBaseCompeled"/>
                            </li>
                            <li>
                                <label>涵洞基础总数(/延米)：</label>
                                <input type="text" name="culvertBaseCount"/>
                            </li>
                            <li>
                                <label>已完成的涵洞墙身(/延米)：</label>
                                <input type="text" name="culvertPenetrationOpeningCompeled"/>
                            </li>
                            <li>
                                <label>涵洞墙身总数(/延米)：</label>
                                <input type="text" name="culvertPenetrationOpeningCount"/>
                            </li>
                            <li>
                                <label>已完成的涵洞盖板(/延米)：</label>
                                <input type="text" name="culvertCoverBoardCompeled"/>
                            </li>
                            <li>
                                <label>涵洞盖板总数(/延米)：</label>
                                <input type="text" name="culvertCoverBoardCount"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:schedule:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:schedule:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:schedule:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:schedule:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:schedule:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:schedule:remove')}]];
        var prefix = ctx + "system/schedule";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "智慧进度",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '',
                    visible: false
                },
                {
                    field: 'roadName',
                    title: '道路名称'
                },
                {
                    field: 'roadbedFillingCompleted',
                    title: '已完成的路基填方(/万m³)'
                },
                {
                    field: 'roadbedFillingCount',
                    title: '路基填方总数(/万m³)'
                },
                {
                    field: 'pavementCompleted',
                    title: '已完成的路面(/km)'
                },
                {
                    field: 'pavementCount',
                    title: '路面总数(/km)'
                },
                {
                    field: 'roadbedCutCompleted',
                    title: '已完成的路基挖方(/万m³)'
                },
                {
                    field: 'roadbedCutCount',
                    title: '路基挖方总数(/万m³)'
                },
                {
                    field: 'softFoundationFillingCompleted',
                    title: '已完成的软基换填(/m³)'
                },
                {
                    field: 'softFoundationFillingCount',
                    title: '软基换填总数(/m³)'
                },
                {
                    field: 'bridgeFoundationCompleted',
                    title: '已完成的桥梁桩基(/根)'
                },
                {
                    field: 'bridgeFoundationCount',
                    title: '桥梁桩基总数(/根)'
                },
                {
                    field: 'bridgePierCompleted',
                    title: '已完成的桥梁墩柱(/根)'
                },
                {
                    field: 'bridgePierCount',
                    title: '桥梁墩柱总数(/根)'
                },
                {
                    field: 'bridgeBinderCompleted',
                    title: '已完成的桥梁系梁(/根)'
                },
                {
                    field: 'bridgeBinderCount',
                    title: '桥梁系梁总数(/根)'
                },
                {
                    field: 'bridgeBentCapCompleted',
                    title: '已完成的桥梁盖梁(/根)'
                },
                {
                    field: 'bridgeBentCapCount',
                    title: '桥梁盖梁总数(/根)'
                },
                {
                    field: 'prefabricationBeamSlabCompleted',
                    title: '已完成的梁板预制(/根)'
                },
                {
                    field: 'prefabricationBeamSlabCount',
                    title: '梁板预制总数(/根)'
                },
                {
                    field: 'culvertBaseCompeled',
                    title: '已完成的涵洞基础(/延米)'
                },
                {
                    field: 'culvertBaseCount',
                    title: '涵洞基础总数(/延米)'
                },
                {
                    field: 'culvertPenetrationOpeningCompeled',
                    title: '已完成的涵洞墙身(/延米)'
                },
                {
                    field: 'culvertPenetrationOpeningCount',
                    title: '涵洞墙身总数(/延米)'
                },
                {
                    field: 'culvertCoverBoardCompeled',
                    title: '已完成的涵洞盖板(/延米)'
                },
                {
                    field: 'culvertCoverBoardCount',
                    title: '涵洞盖板总数(/延米)'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>